<!-- 列表 -->
<extend name="Public:layout" />
<block name="title"><{$authName}></block>

<block name="pluginCSS">
<link rel="stylesheet" type="text/css" href="__PUBLIC__/Admin/plugins/select2/select2.css"/>
<link rel="stylesheet" type="text/css" href="__PUBLIC__/Admin/plugins/select2/select2-metronic.css"/>
</block>
<block name="CSS"></block>

<block name="loadJS">
<script type="text/javascript" src="__PUBLIC__/Admin/plugins/select2/select2.min.js"></script>
<script src="__PUBLIC__/admin/scripts/layer/layer.js" type="text/javascript"></script>	


</block>
<block name="setJS">
<script>
var ajaxUrl="<{:U('index')}>";
</script>
</block>
<block name="initJS">
$('#searchNum').change(function(){
	var pageSize= $(this).val();
	location.href="<{:U('index')}>?pageSize="+pageSize;
});
</block>

<block name="pagetitle">增删改查</block>
<block name="page">
<div class="row">
	<div class="col-md-12">

		<div class="portlet">
			<div class="portlet-title">
				<div class="caption">
					<i class="fa <{$authIco}>"></i><{$authName}>
				</div>
				
				<div class="actions">
					<a class="btn default green-stripe" id="table_manager_new" data-toggle="modal" href="<{$referer}>">
						<i class="fa fa-reply"></i>
						<span class="hidden-480">返回</span>
					</a>
				</div>
				
			</div>
			<div class="portlet-body">
        <table class="table table-hover table-striped table-bordered">
           <tr>
             <td><strong>订单号：<span class="text-danger"><{$object['orderNo']}></span></strong>
             <span style='margin-left:100px;'></span><span class="pull-right">
                                       状态：<if condition='$object["orderStatus"] eq -3'><span class="btn btn-xs yellow">用户拒收</span>
               <elseif condition='$object["orderStatus"] eq -5'/><span class="btn btn-xs red">店铺不同意拒收</span>
               <elseif condition='$object["orderStatus"] eq -4'/><span class="btn btn-xs green">店铺同意拒收</span>
			   <elseif condition='$object["orderStatus"] eq -2'/><span class="btn btn-xs red">未付款</span>
			   <elseif condition='($object["orderStatus"] eq -6) OR ($object["orderStatus"] eq -7) OR ($object["orderStatus"] eq -1)'/><span class="btn btn-xs default">用户取消</span>
			   <elseif condition='$object["orderStatus"] eq 0'/><span class="btn btn-xs red">未受理</span>
			   <elseif condition='$object["orderStatus"] eq 1'/><span class="btn btn-xs green">已受理</span>
			   <elseif condition='$object["orderStatus"] eq 2'/><span class="btn btn-xs yellow">打包中</span>
			   <elseif condition='$object["orderStatus"] eq 3'/><span class="btn btn-xs yellow">配送中</span>
			   <elseif condition='$object["orderStatus"] eq 4'/><span class="btn btn-xs default">已到货</span>
			   </if>
             </span></td>
           </tr>
           <tr>
              <td style='font-weight:bold;'>订单日志</td>
           </tr>
           <tr>
              <td>
                <table  width='100%'>
                <tr>
                  <td width='30%'>操作时间</td>
                  <td>操作信息</td>
                  <td width='20%'>操作人</td>
                </tr>
                <volist name="object['log']" id="log">
                <tr>
                  <td><{$log['logTime']}></td>
                  <td><{$log['logContent']}></td>
                  <td><{$log['loginName']}><notempty name="log['shopName']"><({$log['shopName']})></notempty></td>
                </tr>
                </volist>
                </table>
              </td>
           </tr>
           <tr>
             <td style='font-weight:bold;'>订单信息</td>
           </tr>
           <tr>
             <td>
             <table  width='100%'>
                <tr>
                  <td width='20%' style='text-align:right'>支付方式：</td>
                  <td>
                  <if condition='$object["payType"] eq 1'>在线支付<else/>货到付款</if>
                  </td>
                </tr>
                <tr>
                  <td style='text-align:right'>配送方式：</td>
                  <td>
                  <if condition='$object["isSelf"] eq 1'>
                                                                  自提
                  <else/>
                  	<if condition='$object["deliverType"] eq 1'>店铺配送<else/>商城配送</if>
                  </if>                                                
                  </td>
                </tr>
                <tr>
                  <td style='text-align:right'>送货时间：</td>
                  <td><{$object['requireTime']}></td>
                </tr>
                <tr>
                  <td style='text-align:right'>买家留言：</td>
                  <td><{$object['orderRemarks']}></td>
                </tr>
                </table>
             </td>
           </tr>
           <if condition='$object["isRefund"] eq 1'>
           <tr>
             <td style='font-weight:bold;'>退款说明</td>
           </tr>
           <tr>
             <td>
             <table  width='100%'>
                <tr>
                  <td width='20%' style='text-align:right'>说明：</td>
                  <td>
                  <{$object['refundRemark']}>
                  </td>
                </tr>
                </table>
             </td>
           </tr>
           </if>
           <if condition='$object["isInvoice"] eq 1'>
           <tr>
             <td style='font-weight:bold;'>发票信息</td>
           </tr>
           <tr>
             <td>
             <table  width='100%'>
                <tr>
                  <td width='20%' style='text-align:right'>发票抬头：</td>
                  <td>
                  <{$object['invoiceClient']}>
                  </td>
                </tr>
                </table>
             </td>
           </tr>
           </if>
           <tr>
             <td style='font-weight:bold;'>收货人信息</td>
           </tr>
           <tr>
             <td>
                <table  width='100%'>
                <tr>
                  <td width='20%' style='text-align:right'>收货人：</td>
                  <td><{$object['userName']}></td>
                </tr>
                <tr>
                  <td style='text-align:right'>地址：</td>
                  <td><{$object['userAddress']}></td>
                </tr>
                <tr>
                  <td style='text-align:right'>联系方式：</td>
                  <td>
                  <notmpty name='object['userPhone']'>
                  <{$object['userPhone']}>
                  </notmpty>
                  <notmpty name='object['userTel']'>
                  <{$object['userTel']}>
                  </notmpty>
                  </td>
                </tr>
                </table>
             </td>
           </tr>
           <tr>
              <td style='font-weight:bold;'>商品信息</td>
           </tr>
           <tr>
              <td>
                <table  width='100%'>
                <tr>
                  <td colspan='2'>商品</td>
                  <td width='30%'>价格</td>
                  <td width='10%'>数量</td>
                  <td width='10%'>总金额</td>
                </tr>
                <volist name="object['goodslist']" id="goods">
                <tr>
                  <td width='50'><img src='__UPLOAD__/<{$goods["goodsImg"]?$goods["goodsImg"]:$COMMON.goodsImage}>' style='margin:2px;' width='50'/></td>
                  <td width='400'><{$goods["goodsName"]}><if condition="$goods['goodsAttrName'] neq ''"><{$goods['goodsAttrName']}></if></td>
                  <td width='350'><span class="text-danger">&yen; <{$goods["goodsPrice"]}></span></td>
                  <td width='130'><{$goods["goodsNums"]}></td>
                  <td width='130'><span class="text-danger">&yen; <{$goods["goodsPrice"]*$goods["goodsNums"]}></span></td>
                </tr>
                </volist>
                </table>
              </td>
           </tr>
           <tr>
              <td style='text-align:right;padding-right:10px;'>商品总金额：<span class="text-danger">&yen; <{$object['totalMoney']}></span><br/>+ 运费：<span class="text-danger">&yen; <{$object['deliverMoney']}></span><br/><span style='font-weight:bold;font-size:20px'>订单金额：</span><span style='font-weight:bold;font-size:20px;color:red;'>&yen; <{$object['totalMoney']+$object['deliverMoney']}></span></td>
           </tr>
           <!-- <tr>
             <td colspan='2' align='center'>
                 <button type="button" class="btn btn-primary" onclick='javascript:location.href="<{$referer}>"'>返回</button>
             </td>
           </tr> -->
        </table>
				</div>
		</div>
	</div>
</div>
</block>